﻿using System;
using System.Windows.Markup;
using Greenshot2Core.Core;

namespace Greenshot2Core.WPF.Markup {
	public class LanguageExtension : MarkupExtension {
		private string key;
		public LanguageExtension(string key) {
			this.key = key;
		}
		public override object ProvideValue(IServiceProvider serviceProvider) {
			return Language.GetString(key);
		}
	}
}
